//
//  HLEssenceViewController.m
//  HL-百思不得姐
//
//  Created by admin on 16/4/25.
//  Copyright © 2016年 CHL. All rights reserved.
//

#import "HLEssenceViewController.h"


@interface HLEssenceViewController ()

@end

@implementation HLEssenceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor purpleColor];
    
    //设置导航栏按钮
    [self setupNavBar];
}

#pragma mark - 设置导航栏按钮
- (void)setupNavBar
{
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"nav_item_game_icon"] hightlightImage:[UIImage imageNamed:@"nav_item_game_click_icon"] target:self action:@selector(gameClick)];
    
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"navigationButtonRandom"] hightlightImage:[UIImage imageNamed:@"navigationButtonRandomClick"] target:self action:@selector(randomClick)];
    
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
}

#pragma mark - 点击导航栏按钮事件
//点击左边按钮
- (void)gameClick
{
    HLFunc;
}

//点击右边按钮
- (void)randomClick
{
    HLFunc;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}


@end
